<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <body>

        <ui:composition template="./template.xhtml">

            <ui:define name="title">
                Report Detail
            </ui:define>

            <ui:define name="content">
                <f:metadata>
                    <f:viewParam name="reportid" value="#{reportDetailBean.reportid}" />
                </f:metadata>
                <h:form>
                    <table align="center" width="500px">
                        <tr>
                            <td colspan="2" align="center"><h3>Report Detail</h3></td>
                        </tr>
                        <tr>
                            <td>Sender</td>
                            <td>#{reportDetailBean.report.sender.username}</td>
                        </tr>
                        <tr>
                            <td>Lab Name</td>
                            <td>#{reportDetailBean.report.deviceID.labID.labname}</td>
                        </tr>
                        <tr>
                            <td>Device Name</td>
                            <td>#{reportDetailBean.report.deviceID.devicename}</td>
                        </tr>
                        <tr>
                            <td>Title</td>
                            <td>#{reportDetailBean.report.title}</td>
                        </tr>
                        <tr>
                            <td>Content</td>
                            <td>#{reportDetailBean.report.content}</td>
                        </tr>
                        <tr>
                            <td>Status</td>
                            <td><h:outputText value="#{reportDetailBean.report.status}">
                                    <f:converter converterId="Prolem" />
                                </h:outputText></td>
                        </tr>
                    </table>
                </h:form>
            </ui:define>

        </ui:composition>

    </body>
</html>
